#include "vl53l1x.h"
#include "iic3.h"

#define VL53L1X_ADDR 				0x52

// 判断芯片是否存在
static uint8_t existenceFlag = 0;

uint8_t vl53l1xInit(void)
{
    uint16_t t_vl53l1xId = 0;
	/*vl53l1x 初始化*/
	i2c3Read(VL53L1X_ADDR, 0x010F, (uint8_t *)&t_vl53l1xId, 2);

	if(t_vl53l1xId == 0xEACC)
	{
        existenceFlag = 1;

		
	}
    return existenceFlag;
}
